﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace S.RBAC.Api.Application.Command.DepartmentCommand
{
    public class DepartmentCreateCommand : IRequest<int>
    {
        /// <summary>
        /// 父ID
        /// </summary>
        public int PId { get; set; }

        /// <summary>
        /// 上级部门
        /// </summary>
        public string? PDepartment { get; set; }

        /// <summary>
        /// 部门编号
        /// </summary>
        public string? DepartCode { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string? DepartName { get; set; }

        /// <summary>
        /// 部门状态
        /// </summary>
        public bool DepartState { get; set; }

        /// <summary>
        /// 部门类型
        /// </summary>
        public int DepartTypeId { get; set; }

        /// <summary>
        /// 部门级别
        /// </summary>
        public int DepartRank { get; set; }

        /// <summary>
        /// 部门区域所在地
        /// </summary>
        public string? DepartLocation { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public int StaffId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }

        /// <summary>
        /// 逻辑删除字段
        /// </summary>
        public bool IsDel { get; set; }
    }
}
